<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<%@ page trimDirectiveWhitespaces="true"%>

<jsp:useBean id="manager" class="beans.IndexBean" scope="request">
    <c:set target="${manager}" property="request" value="${pageContext.request}" />
    <c:set target="${manager}" property="response" value="${pageContext.response}" />
    <c:set target="${manager}" property="session" value="${pageContext.session}" />
    <c:set target="${manager}" property="context" value="${pageContext.servletContext}" />
</jsp:useBean>
<c:choose>
    <c:when test="${manager.load == true}">
        <c:redirect url="chat.jsp"></c:redirect>
    </c:when>
    <c:when test="${manager.load == false}">
        <c:redirect url="auth.jsp"></c:redirect>
    </c:when>    
</c:choose>